package cn.wolfcode.business.vo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

@Getter
@Setter
public class ConsumerStatisVo {
    private Integer statisType;
    private Integer dimension;
    private Date beginTime;
    private Date endTime;

    public String getDimensionString(){
        if(dimension == null){
            return "%Y-%m-%d";
        }else if(dimension == 1){
            return "%Y-%m-%d";
        }else if(dimension == 2){
            return "%Y-第%U周";
        }else if(dimension == 3){
            return "%Y-%m";
        }else if(dimension == 4){
            return "%Y";
        }
        return "%Y-%m-%d";
    }

}
